<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/pages/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="Generator" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>鹰牌陶瓷合肥运营中心</title>
<meta name="keywords" content="鹰牌陶瓷,陶瓷,鹰牌,安徽,合肥" />
<meta name="description" content="鹰牌陶瓷合肥运营中心,人才招聘,招聘职位" />
<meta name="author" content="" />
<link href="${ctx}/css/sub/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="${ctx}/themes/default/default.css" type="text/css" />
<link rel="stylesheet" href="${ctx}/css/main.css" type="text/css" />
<!-- IE6 fixes are found in styles/ie6.css -->
<!--[if lte IE 6]><link rel="stylesheet" type="text/css" href="${ctx}/css/ie6.main.css" /><![endif]-->
</head>
<body>
<div id="main">
  <jsp:include page="../../header.jsp" />
  <div id="bd">
    <div id="bd_right2" class="news" style="float: left;width: 950px;">
		<div class="mt">
		   <h2>家装学堂</h2>
		   <div class="extra"></div>
	  	</div>
		<div class="pd_title">${news_info.title}
			<div class="pd_update_count" >
		       	 <span>更新时间：&nbsp;&nbsp;<fmt:formatDate value="${news_info.add_datetime}"/></span>
		       	 <span class="date">浏览次数：&nbsp;&nbsp;${news_info.view_count}</span>
		      	 </div>
		</div>
		<div class="pd" style="margin-top: -20px">　　
		  <div id="content"></div>
		</div>
		<div id="hide_content" style="display: none;">${news_info.content}</div>
		<div id="page" align="center" style="width:100%;margin-top: 10px;"></div>
   	</div>
  </div>
</div>
<jsp:include page="../../footer.jsp" />
<script type="text/javascript" src="${ctx}/commons/scripts/jquery.js"></script>
<script type="text/javascript">//<![CDATA[
$(document).ready(function(){
	/*** 分页  ***/
	var page_count = $("div[style='page-break-after: always']").length;
	if(page_count == 0){
		page_count = $("div[style='PAGE-BREAK-AFTER: always']").length
	}
	
	if(page_count > 1){
		for(var i = 0;i <= page_count;i++){
			$("#page").append("【<a href='javascript:void(0);' onclick='pager(" + i + ")' style='font-size:13px;text-decoration:underline;'>" + (i+1) + "页</a>】");
		}
	}
	/*** 分页  ***/

	pager(0);
});

/*** 分页  ***/
var contents = $("#hide_content").html().split("<DIV style=\"PAGE-BREAK-AFTER: always\"><SPAN style=\"DISPLAY: none\">&nbsp;</SPAN></DIV>");
if(contents.length == 1){
	contents = $("#hide_content").html().split("<div style=\"page-break-after: always\"><span style=\"display: none\">&nbsp;</span></div>");
}

function pager(req_page){
	$("#content").html(contents[req_page]);
}
//]]></script>
</body>
</html>
